package com.dev.mainual.throwable.trx;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

/**
 * ClassName: TrxDao
 * Description:
 * Date: 2019/1/28 9:38 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Repository
public class TrxDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public int insert() {
        String sql = "insert into lotso_web.t_sys_role values (99, 'trxDemo', 'trxDemo', null, null)";
        return jdbcTemplate.update(sql);
    }
}
